Welcome to "Serverless Reference
Architecture and Use Cases" After watching this video, you will be able to: Explain a Web Application reference
architecture using Serverless Framework, and Describe other use cases of Serverless Framework Let’s look at a Web application
that implements a simple To Do app, in which a registered user can
create, read, update and delete items. The Web Application reference
architecture is a general-purpose, event-driven back-end that uses AWS Lambda,
Amazon API Gateway for its business logic. It also uses Amazon DynamoDB as its database
and Amazon Cognito for user management. All static content in the application
is hosted using AWS Amplify Console. The architecture of this To
Do application is as shown. You can see various components in the application. Basically, the Web Application
comprises 3 different components. The front-end application contains all
the static content generated using the Create React App which works with the help of HTML files
CSS for styling JavaScript to run on the client, and
images. All these objects are hosted
on AWS Amplify Console. When a user connects to the website, the needed resources are downloaded to
their browser and start to run there. When the application needs to
communicate with the back end, it does so by issuing REST
API calls to the back end. Now the back end application is where the
actual business logic is implemented. The logic is hosted in Lambda functions accessed
by your front end via API Gateway using REST API. The data is then stored in DynamoDB. The To Do application limits the
users to their own to do items. Thus, the users have to be registered and authenticated to access
their individual To Do items. To accomplish this, you use Cognito User Pools, which allows users to register to the
application and authenticate them. A common use case for Serverless
application is Event streaming. These applications can be written and deployed
without setting up-front infrastructure. And can be triggered from publisher, subscriber
topics or from event logs, giving you elastic, scalable event pipelines without the
maintenance of complicated clusters. These event streaming pipelines
can power your analytics systems, update secondary data stores and
caches, or feed monitoring systems. Examples of post-processing include
Image and Video Manipulation, where you can dynamically resize images or change
video transcoding for different target devices. Post-processing could also be used
for image recognition or artificial intelligence purposes to detect if there
are any shadows on your passport photo. When you build an application, you need to
decide on the language to use in the application. Serverless applications can be multi-lingual. They prevent teams from language lock-in, where they have to indefinitely use the
same language as their legacy software. Now usually, the language chosen to build the
application is not what suits the project best, but rather depends on the available resources. In this video, you learned that: The Web Application reference
architecture is event-driven that uses: AWS Lambda Amazon API Gateway Amazon DynamoDB Amazon Cognito and Amazon Amplify Console The Web Application comprises 3
components, front-end, back-end, and user registration, and authentication. And the use cases for serverless web
applications are Event streaming, Post-processing, and Multi-language.